package com.cyj.codegen.common;

/**
 * @Description: 全局变量--常量
 * @BelongsProject: MybatisPlusCodeGenDemo
 * @BelongsPackage: com.cyj.codegen.common
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-03 10:21
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public interface Constants {

    /**
     * 来源：钉钉
     */
    String SOURCE_DING = "0";

    /**
     * 来源：钉钉
     */
    String SOURCE_LOCAL = "1";

    /**
     * scanBasePackages
     */
    String SCAN_BASE_PACKAGES = "com.cyj.codegen";

    /**
     * 数据状态 - 删除
     */
    String STATUS_DEL = "1";

    /**
     * 数据状态 - 正常
     */
    String STATUS_NORMAL = "0";

    /**
     * 锁定
     */
    String STATUS_LOCK = "1";

    /**
     * 菜单树根节点
     */
    Integer MENU_TREE_ROOT_ID = -1;

    /**
     * 菜单
     */
    String MENU = "0";

    /**
     * 编码
     */
    String UTF8 = "UTF-8";

    /**
     * JSON 资源
     */
    String CONTENT_TYPE = "application/json; charset=utf-8";

    /**
     * 前端工程名
     */
    String FRONT_END_PROJECT = "codegen-ui";

    /**
     * 后端工程名
     */
    String BACK_END_PROJECT = "codegen";

    /**
     * 成功标记
     */
    Integer SUCCESS = 0;

    /**
     * 失败标记
     */
    Integer FAIL = 1;
    /**
     * 鉴权异常
     */
    Integer oauthError = 401;

    /**
     * 验证码前缀
     */
    String DEFAULT_CODE_KEY = "DEFAULT_CODE_KEY_";

    /**
     * 当前页
     */
    String CURRENT = "current";

    /**
     * size
     */
    String SIZE = "size";

}
